import numpy as np
import csv
import pandas as pd


df = pd.read_csv('D:\py\pythonProject\population-data\data\originalData\变化年度数据 .csv', skiprows=2,encoding="gbk")

print(df.head())

df=df.iloc[:-2]

print(df.head())



output_file_path = r'D:\py\pythonProject\population-data\data\temp\年度变化数据.csv'
df.to_csv(output_file_path, encoding="gbk")